﻿using GrapeCity.Forguncy.Commands;
using GrapeCity.Forguncy.Plugin;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GetIP
{
    [Icon("pack://application:,,,/GetIP;component/Resources/Icon.png")]
    public class GetIP : Command
    {
        [DisplayName("IP")]
        [FormulaProperty(true)]
        public object IpCell { get; set; }

        [DisplayName("cname")]
        [FormulaProperty()]
        public object IpCname { get; set; }

        public override string ToString()
        {
            return "获取外网IP";
        }


        public override CommandScope GetCommandScope()
        {
            return CommandScope.Cell | CommandScope.ListView | CommandScope.PageLoad;
        }
    }

    
}
